//
//  Const.swift
//  SwiftUI_App
//
//  Created by qingzhou on 2021/6/24.
//

import SwiftUI

let SCREEN_WIDTH = UIScreen.main.bounds.width
let SCREEN_HEIGHT = UIScreen.main.bounds.height

let ISIPHONE = (UIDevice().userInterfaceIdiom == UIUserInterfaceIdiom.phone)

let IS_IPHONE_X = (ISIPHONE && (CGSize(width: 375, height: 812).equalTo(CGSize(width: SCREEN_WIDTH, height: SCREEN_HEIGHT))))

let kStatusBarH : CGFloat = (IS_IPHONE_X ? 44 : 20)

let kNavigationBarH : CGFloat = (kStatusBarH + 44)

let kTabbarH : CGFloat = (IS_IPHONE_X ? 83 : 49)

let kBottomHeight : CGFloat = (IS_IPHONE_X ? 34 : 0)
///默认边距
let kSpacing: CGFloat = 10
